/**
 * Created by HFY on 2017/5/11.
 */
//点击下拉
$(".operation_history_span01").click(function () {
    $(".operation_history_time_select").slideToggle()
});
$(".operation_span01").click(function () {
    $(".operation_select").slideToggle()
});
//下拉内容赋值
var timeA = $(".operation_history_span01");
var timeALi = $(".operation_history_ul li a");
for (var i = 0; i < timeALi.length; i++) {
    timeALi[i].onclick = function () {
        timeA.text($(this).text())
        $(".operation_history_time_select").slideToggle()
    }
}
var genreA = $(".operation_span01");
var genreLiA = $(".operation_ul li a");
for (var i = 0; i < genreLiA.length; i++) {
    genreLiA[i].onclick = function () {
        genreA.text($(this).text())
        $(".operation_select").slideToggle()
    }
}
$(function(){
    $('input[placeholder]').placeholder();
});
//清空
$(".time_a").click(function(){
    $(".time_a").val("")
});
//操作历史
var operationBottomHeight = $(window).height() - $(".operation_bottom_center").offset().top;
$(".operation_bottom_center").css({
    "height":operationBottomHeight-60
});
$(window).resize(function () {
var operationBottomHeight = $(window).height() - $(".operation_bottom_center").offset().top;
$(".operation_bottom_center").css({
    "height":operationBottomHeight-60
});
});
 //鼠标移入显示详细信息
    var firmNameSpan = $(".firm_name_ul").find('li:eq(2)');
for (var i = 0; i < firmNameSpan.length; i++) {
    firmNameSpan[i].onmouseenter = function () {
        firmNameSpan.attr("title",$(this).text());
    }
}